package com.example.demo.modules.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhengyingya
 * @since 2023-04-12
 */
@Getter
@Setter
@TableName("device_info")
public class DeviceInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("id")
    private String id;

    @TableField("device_name")
    private String deviceName;

    @TableField("current_temperature")
    private Float currentTemperature;

    @TableField("current_humidity")
    private Float currentHumidity;

    @TableField("temp_threshold")
    private Float tempThreshold;

    @TableField("alarm_status")
    private Boolean alarmStatus;

    @TableField("last_alarm_date")
    private LocalDateTime lastAlarmDate;

    @TableField("last_online_date")
    private LocalDateTime lastOnlineDate;

    @TableField("connect_status")
    private Boolean connectStatus;

    @TableField("gmt_update")
    private LocalDateTime gmtUpdate;


}
